package com.lz.repository.fsh;

import java.util.List;

import com.lz.entity.Customer;
import com.lz.entity.Employee;
import org.hibernate.Query;
import org.hibernate.SQLQuery;
import org.hibernate.Session;

import com.lz.entity.Car;
import com.lz.entity.InsuranceSheet;

public interface InsuranceSheetDao {
	
	//查询InsuranceSheet表
	 List<InsuranceSheet> getAlllist(Session session);
	 //查询car表
	 List<Car> getList(Session session);
	 //添加保险单
	Integer addInsuranceSheet(Session session, InsuranceSheet insuranceSheet);

	//添加顾客
	Integer addCustomer(Session session, Customer customer);
	//添加汽车
	Integer addCar(Session session, Car car);
	//添加员工
	Integer addEmployee(Session session, Employee employee);

	//条件查询
	List<InsuranceSheet> selectInsuranceSheet(Query query);
	//查询总条数
	Integer rowsInsuranceSheet(Query query);

	//删除数据
    Integer deleteInsuranceSheet(Session session, InsuranceSheet insuranceSheet);

	/**获得车险单的主键最大值*/
	Integer getMaxPrimaryKey();
}
